Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#4071] Add metrics feature #4235

Merged
merged 14 commits into from
Nov 8, 2021
Merged

[#4071] Add metrics feature #4235

merged 14 commits into from
Nov 8, 2021

Conversation

gshank
Copy link
Contributor

@gshank gshank commented Nov 8, 2021

resolves #4071

Description

This add the 'metrics' feature to dbt Core. See the ticket for more information.

Checklist

  • I have signed the CLA
  • I have run this code in development and it appears to resolve the stated issue
  • This PR includes tests, or tests are not required/relevant for this PR
  • I have updated the CHANGELOG.md and added information about my change

@cla-bot cla-bot bot added the cla:yes label Nov 8, 2021

metrics:

- model: people
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here and below, this should be:

Suggested change
- model: people
- model: ref('people')

I had to use it to understand it :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

Copy link
Contributor

@jtcohen6 jtcohen6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's ship it :)

@gshank gshank merged commit 855419d into main Nov 8, 2021
@gshank gshank deleted the feature/metric-definitions branch November 8, 2021 22:44
jtcohen6 pushed a commit that referenced this pull request Nov 9, 2021
* first cut at supporting metrics definitions

* teach dbt about metrics

* wip

* support partial parsing for metrics

* working on tests

* Fix some tests

* Add partial parsing metrics test

* Fix some more tests

* Update CHANGELOG.md

* Fix partial parsing yaml file to correct model syntax

Co-authored-by: Drew Banin <[email protected]>
iknox-fa pushed a commit that referenced this pull request Feb 8, 2022
* first cut at supporting metrics definitions

* teach dbt about metrics

* wip

* support partial parsing for metrics

* working on tests

* Fix some tests

* Add partial parsing metrics test

* Fix some more tests

* Update CHANGELOG.md

* Fix partial parsing yaml file to correct model syntax

Co-authored-by: Drew Banin <[email protected]>

automatic commit by git-black, original commits:
  855419d
iknox-fa pushed a commit that referenced this pull request Feb 8, 2022
* first cut at supporting metrics definitions

* teach dbt about metrics

* wip

* support partial parsing for metrics

* working on tests

* Fix some tests

* Add partial parsing metrics test

* Fix some more tests

* Update CHANGELOG.md

* Fix partial parsing yaml file to correct model syntax

Co-authored-by: Drew Banin <[email protected]>

automatic commit by git-black, original commits:
  31c88f9
  6c6649f
  726004b
  855419d
  c69f28e
  d60f6bc
iknox-fa pushed a commit that referenced this pull request Feb 8, 2022
* first cut at supporting metrics definitions

* teach dbt about metrics

* wip

* support partial parsing for metrics

* working on tests

* Fix some tests

* Add partial parsing metrics test

* Fix some more tests

* Update CHANGELOG.md

* Fix partial parsing yaml file to correct model syntax

Co-authored-by: Drew Banin <[email protected]>

automatic commit by git-black, original commits:
  2142e52
  56ae206
  855419d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature] dbt should know about metrics
3 participants